package com.ktjy.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Livecommerce {
    private Long id;
    private String streamer;
    private String livePlatform;
    private String product;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date liveTime;

    private double price;
    private int status;

    public Livecommerce() {
    }

    public Livecommerce(Long id, String streamer, String livePlatform, String product, Date liveTime, double price, int status) {
        this.id = id;
        this.streamer = streamer;
        this.livePlatform = livePlatform;
        this.product = product;
        this.liveTime = liveTime;
        this.price = price;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStreamer() {
        return streamer;
    }

    public void setStreamer(String streamer) {
        this.streamer = streamer;
    }

    public String getLivePlatform() {
        return livePlatform;
    }

    public void setLivePlatform(String livePlatform) {
        this.livePlatform = livePlatform;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public Date getLiveTime() {
        return liveTime;
    }

    public void setLiveTime(Date liveTime) {
        this.liveTime = liveTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Livecommerce{" +
                "id=" + id +
                ", streamer='" + streamer + '\'' +
                ", livePlatform='" + livePlatform + '\'' +
                ", product='" + product + '\'' +
                ", liveTime=" + liveTime +
                ", price=" + price +
                ", status=" + status +
                '}';
    }
}
